package cn.shadow.module.snake;

import com.badlogic.gdx.Game;

public class SnakeGame extends Game {

    private SnakeScreen snakeScreen;

    @Override
    public void create() {
        this.snakeScreen = new SnakeScreen();
        setScreen(snakeScreen);
    }

    @Override
    public void dispose() {
        super.dispose();
        if (snakeScreen != null) {
            snakeScreen.dispose();
            snakeScreen = null;
        }
    }
}
